#include <unistd.h>
#include <iostream>
using namespace std;
int main() {
    char* args[] = {"/bin/ls","nullptr"};
    cout<<"当前进程号:"<<getpid()<<"\n";
    if(execve("/bin/ls",args, nullptr)<0)
        cout<<"创建进程出错"<<"\n";
    return 0;
}